const express = require('express')
const router = express.Router()
//告警详情
router.get('/alarmDetail', (req, res) => {
    const data = require('./detail.json')
    res.json(data)
})
//异常归因分析详情
router.get('/alarmAlgAnalyze', (req, res) => {
    const data = require('./algAnalyze.json')
    res.json(data)
})
//归因分析-算法列表
router.get('/getAlarmAlgorithmType', (req, res) => {
    const data = require('./algorithmType.json')
    res.json(data)
})
//归因分析图表
router.get('/algGraphData', (req, res) => {
    let isOld = false
    let data
    if (isOld) {
        data = require('./algGraphDataV2.json')
    } else {
        data = require('./newData/algGraphDataV2.json')
    }
    res.json(data)
})
//array端设备别和时间别10003||10004
router.get('/algArrayGraphDataV210003', (req, res) => {
    const data = require('./10003.json')
    res.json(data)
})
router.get('/algArrayGraphDataV210004', (req, res) => {
    const data = require('./10004.json')
    res.json(data)
})
//CST别图表
router.get('/getCSTChartData', (req, res) => {
    const data = require('./CSTdata.json')
    res.json(data)
})
//Slot别图表
router.get('/getSlotChartData', (req, res) => {
    const data = require('./SlotData.json')
    res.json(data)
})
//subunit别图表
router.get('/getSubunitChartData', (req, res) => {
    const data = require('./SubunitData.json')
    res.json(data)
})
//不良明细table
router.get('/defectDetail', (req, res) => {
    const data = require('./defectDetail.json')
    res.json(data)
})
//不良趋势
router.get('/defectRatioTrend', (req, res) => {
    const data = require('./defectRatioTrend.json')
    res.json(data)
})
//散点图
router.get('/mapFocusGraphDataV2', (req, res) => {
    const data = require('./mapFocusGraphDataV2.json')
    res.json(data)
})
//散点图背景
router.get('/mapLayout', (req, res) => {
    const data = require('./mapLayout.json')
    res.json(data)
})
//panel table
router.get('/panelTable', (req, res) => {
    const data = require('./mappingText.json')
    res.json(data)
})
module.exports = router